<?php


namespace app\dmoe\controller;


class js
{
public function js(){
    $total = 0;
    $i = input('get.i');
    $j = input('get.j');
    while ($i <= $j){
        $total +=$i;
        $i++;
    }
    echo $total;
}
}